class Term < ActiveRecord::Base
  belongs_to :time_unit

  has_many :educational_plans
  has_many :academic_terms
  

  validates_presence_of :name, :duration, :time_unit_id
  validates_uniqueness_of :name
  validates_numericality_of :duration, :only_integer => true, :greater_than => 0
end
